package Day06;

import java.util.Scanner;

public class Test3 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("请输入第一个数据：");
        int a = in.nextInt();
        System.out.println("请输入第二个数据：");
        int b = in.nextInt();
        System.out.println("请输入第三个数据：");
        int c= in.nextInt();
        int max;
        if (a > b) {
            max = a;
        } else {
            max = b;
        }

        if (max < c) {
            max = c;
        }
        System.out.println("最大值为："+max);
    }
}
